import request from '../utils/request';

export const loginData = param => {
    return request({
        url: '/api/upp/login/doLogin',
        method: 'post',
        // url:'./json/isLogin.json',
        // method: 'get',
        params: param
    });
};
//后台进行退出登录操作
export const doSignout = param => {
    return request({
        url: '/api/upp/login/doSignout',
        method: 'post',
        // url:'./json/isLogin.json',
        // method: 'get',
        params: param
    });
};
/*更改用户密码*/
export const updatePwd = param => {
    return request({
        url: '/api/upp/user/updatePwd',
        method: 'post',
        // url:'./json/isLogin.json',
        // method: 'get',
        params: param
    });
};
/*获取版本号*/
export const getVersion = param => {
    return request({
        url: '/api/upp/version/getVersion',
        method:'post',
        // url:'./json/isLogin.json',
        // method: 'get',
        params: param
    });
};


